package com.demo.demo01.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class Comment {

    private String code;
    private String head;
    private String content;
    private String account;
    private String nickname;

    public Comment(String code, String head, String content, String nickname, String account){
        this.code = code;
        this.head = head;
        this.content = content;
        this.nickname = nickname;
        this.account = account;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
